package com.small.account.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.small.account.entity.UserAndMechanism;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

/**
 * <p>
 * 人员组织 Mapper 接口
 * </p>
 *
 * @author wangguochao
 * @since 2021-01-28
 */
public interface UserAndMechanismMapper extends BaseMapper<UserAndMechanism> {
    /**
     * 查询用户组织
     * @param ids 用户ID
     * @return 组织信息
     */
    List<UserAndMechanism> getMechanismByUserIds(@Param("ids") Set<String> ids);
}
